﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WordAddIn2010
{
    public class ItemInfo
    {
        List<string> LstSubItem;
        public ItemInfo(string _category)
        {
            LstSubItem = new List<string>();
            this.category = _category;
        }
        public string category { get; set; }

        public List<string> SubItems 
        {
            get
            {
                LstSubItem.Sort();
                return LstSubItem;
            }
        }
        public void AddItem(string _name)
        {
            if (!LstSubItem.Contains(_name))
            {
                LstSubItem.Add(_name);
            }
        }
    }
}
